﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Qplus.UI
{
    public class PageManager:PhoneApplicationPage
    {
        private static PageManager instance;

        public static PageManager Instance
        {
            get
            {
                if (null == instance) instance = new PageManager();
                return instance;
            }
        }

        public PhoneApplicationPage Mainpage { get; set; }
        public void GotoEntryPage()
        {
            if(null!=Mainpage)
                Mainpage.NavigationService.Navigate(new Uri("/UI/EntryPage.xaml?previousPageName=" + this.ToString(), UriKind.Relative));
        }
        void test()
        {
            System.Diagnostics.Debug.WriteLine("@@");
        }
    }

    public class StateEventArgs : EventArgs
    {
        public StateEventArgs(string state)
        {
            System.Diagnostics.Debug.WriteLine(state);
        }
    }
}
